home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Logon Pictures.xpl < prev    next >
Text File  |  1999-10-22  |  2KB  |  75 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="3"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Login\1) Booting"
  5. "NAME"="Windows 9x Logon Picture"
  6. "VERSION"="1.12"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Picture 1"
  9. "DATA 1"="Bitmap picturs (*.BMP)|*.bmp"
  10. "DESCRIPTION 1"="This plug-in can be used to change the picture that is displayed when starting Windows."
  11. "DESCRIPTION 4"="NOTE: The picture should be 320x400 pixels with 256 colors."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. Sub Plugin_Initialize 
  18.  if GetWinVer=1 or GetWinVer=3 then
  19.     'SetUIElement 1,GetWinDir
  20.     SetUIElement 1,"C:\"
  21.  else  
  22.   Disable
  23.  end if
  24. End Sub
  25.  
  26. Sub Plugin_CheckData(ElementIndex)
  27. End Sub
  28.  
  29. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  30.  s=GetUIElement(1)
  31.  if len(s)>0 then
  32.   Call DoWork("LOGO.SYS","LOGO.XSB",s)
  33.   Call Restart
  34.  end if
  35.  
  36. ' s=GetUIElement(2)
  37. ' if len(s)>0 then
  38. '  Call DoWork("LOGOS.SYS","LOGOS.XSB",s)
  39. '  Call Restart
  40. ' end if
  41.  
  42.  Call MsgInformation("The new logo has been set.")
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49. Sub DoWork(File1,BackupFile,NewFile)
  50.  's1=GetWinDir & File1
  51.  s1="C:\" & File1
  52.  s2="C:\" & BackupFile
  53.  s3=NewFile
  54.  
  55.  'if backup exists, delete it
  56.  if FileExists(s2) then
  57.   Call FileSetAttribute(s2,"S-")
  58.   Call FileSetAttribute(s2,"R-")
  59.   Call FileSetAttribute(s2,"H-")
  60.   Call FileDelete(s2)
  61.  end if
  62.  
  63.  'make backup of current file
  64.  if FileExists(s1) then
  65.   Call FileSetAttribute(s2,"S-")
  66.   Call FileSetAttribute(s2,"R-")
  67.   Call FileSetAttribute(s2,"H-")
  68.   Call FileCopy(s1,s2)
  69.   Call FileDelete(s1)
  70.  end if
  71.  
  72.  'now copy new file to old file
  73.  Call FileCopy(s3,s1)
  74. End Sub
  75.